package org.dromara.wechat.domain.bo;


import org.dromara.wechat.domain.UmsMember;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

/**
 * 会员业务对象 ums_member
 *
 * @author Lion Li
 * @date 2024-06-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UmsMember.class, reverseConvertGenerate = false)
public class UmsMemberBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long memberLevelId;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nickname;

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 用户性别（0男 1女 2未知）
     */
    @NotBlank(message = "用户性别（0男 1女 2未知）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sex;

    /**
     * 帐号启用状态:0->禁用；1->启用
     */
    @NotNull(message = "帐号启用状态:0->禁用；1->启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 头像
     */
    @NotBlank(message = "头像不能为空", groups = { AddGroup.class, EditGroup.class })
    private String avatar;

    /**
     * 性别：0->未知；1->男；2->女
     */
    @NotNull(message = "性别：0->未知；1->男；2->女不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long gender;

    /**
     * 生日
     */
    @NotNull(message = "生日不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date birthday;

    /**
     * 所做城市
     */
    @NotBlank(message = "所做城市不能为空", groups = { AddGroup.class, EditGroup.class })
    private String city;

    /**
     * 职业
     */
    @NotBlank(message = "职业不能为空", groups = { AddGroup.class, EditGroup.class })
    private String job;

    /**
     * 个性签名
     */
    @NotBlank(message = "个性签名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String personalizedSignature;

    /**
     * 用户来源
     */
    @NotNull(message = "用户来源不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sourceType;

    /**
     * 最后登录IP
     */
    @NotBlank(message = "最后登录IP不能为空", groups = { AddGroup.class, EditGroup.class })
    private String loginIp;

    /**
     * 最后登录时间
     */
    @NotNull(message = "最后登录时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date loginDate;

    /**
     * 用户类型
     */
    private String userType;


}

